<style type="text/css">
p.menu a {
color: #000000;
background: #9955tt;
font: 12px Verdana;
text-decoration: none;
text-align: center;
border: 1px solid #000000;
padding: 1px 5px;
margin-right:1px;
}
p.menu a:hover {
background: #a0f3ac;
}
</style>

<body>
<p class="menu">
<a href="http://localhost/sf_casa/web/rlinux_abe.php/principal/menuOper">Menu Telemarketing</a>
<?php echo link_to('Editar Doação', 'doacaos/edit?id='.$doacaos->getId()) ?>
<?php echo link_to('Listar Doações', 'doacaos/list') ?>
</p>
</body>


<?php
// auto-generated by sfPropelCrud
// date: 2007/10/29 14:34:42
?>
<table border="1">
<tbody>
<tr>
<th>Id: </th>
<td><?php echo $doacaos->getId() ?></td>
</tr>
<tr>
<th>Contribuinte: </th>
<?php $idCon = ($doacaos->getContribuinteId()) ?>
    <?php $contribuintes = ContribuintesPeer :: retrieveByPk($idCon); ?>
    <?php if (!$idCon == NULL) {?>
    <td><?php echo $contribuintes->getNome(); ?></td>
  <?php } ?>
</tr>
<tr>
<th>Empresa Contribuinte: </th>
<?php $idEmpCon = ($doacaos->getEmpcontribuinteId()) ?>
    <?php $empcontribuintes = EmpcontribuintesPeer :: retrieveByPk($idEmpCon); ?>
    <?php if (!$idEmpCon == NULL) {?>
    <td><?php echo $empcontribuintes->getNomefantasia();  ?></td>
  <?php } ?>
</tr>
<tr>
<th>Valor R$: </th>
<td><?php echo $doacaos->getValor() ?></td>
</tr>
<tr>
<th>Período: </th>
<?php $idPer = ($doacaos->getPeriodoId()) ?>
  <td><?php $periodos = PeriodosPeer :: retrieveByPk($idPer); ?><?php echo $periodos->getDescr() ?></td>
</tr>
<tr>
<th>Data de confirmação: </th>
<td><?php echo $doacaos->getDtConfirmacao() ?></td>
</tr>
<tr>
<th>Data de vencimento: </th>
<td><?php echo $doacaos->getDtVencimento() ?></td>
</tr>
<tr>
<th>Situação: </th>
<?php $idSitua = ($doacaos->getSituacaoId()) ?>
  <td><?php $situacaos = SituacaosPeer :: retrieveByPk($idSitua); ?><?php echo $situacaos->getDescr() ?></td>
</tr>
<tr>
<th>Histórico de contatos: </th>
<td><?php echo $doacaos->getHistContatos() ?></td>
</tr>
<tr>
<th>Cobrador: </th>
<?php $idCob = ($doacaos->getCobradorId()) ?>
  <?php $cobradors = CobradorsPeer :: retrieveByPk($idCob); ?><?php $idFunc = $cobradors->getFuncionarioId() ?>
  <td><?php $funcionarios = FuncionariosPeer :: retrieveByPk($idFunc); ?><?php echo $funcionarios->getNome() ?></td>
</tr>
<tr>
<th>Código de Barras: </th>
<td><?php echo $doacaos->getCodBarras() ?></td>
</tr>
<tr>
<th>Criado em: </th>
<td><?php echo $doacaos->getCreatedAt() ?></td>
</tr>
<tr>
<th>Atualizado em: </th>
<td><?php echo $doacaos->getUpdatedAt() ?></td>
</tr>
<tr>
<th>Usuário: </th>
<td><?php echo $doacaos->getUsuarioId() ?></td>
</tr>
</tbody>
</table>
